from pymongo import MongoClient

local_client = MongoClient('localhost', 27017)
local_db = local_client['knx_posts_db']
local_offical_posts_coll = local_db['offical_posts_coll']

server_client = MongoClient('47.104.130.19', 27017)
server_db = server_client['knx_posts_db']
server_offical_posts_coll = server_db['offical_posts_coll']

# for item in local_offical_posts_coll.find():
#     del item['_id']
#     server_offical_posts_coll.insert_one(item)
print(server_offical_posts_coll.count())
